import { IsNumber, IsOptional, IsString, Min } from 'class-validator';

export class UpdateRoomDto {
  @IsString()
  @IsOptional()
  roomType?: string;

  @IsNumber()
  @Min(0, { message: '价格不能为负数' })
  @IsOptional()
  price?: number;

  @IsString()
  @IsOptional()
  status?: string;

  @IsNumber()
  @IsOptional()
  hotelID?: number;
}
